package org.xmlbinder;


import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;


/**
 * Maps an attribute of a Tag to a field/method
 * @author Noble Paul (noble.paul@gmail.com)
 */
@Target({ElementType.FIELD, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface Attribute {
    /**Name of the attribute. The default is set to be the name of the field itself
     */
    String value() default "##default";

    Class type() default String.class;
}
